﻿using Avalon.Core.Data;
using Avalon.Core.MVC.Attributes;
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Avalon.Business.ViewModels
{
    [ViewModel(typeof(Data.Models.CharacterSkill))]
    [DisplayName("Character skill")]
    public class VMCharacterSkill : IViewModel
    {
        [RenderMode(Core.MVC.Attributes.RenderMode.None)]
        public Guid Id { get; set; }

        [DetailNavigationAttribute("Id")]
        public string Name { get; set; }
        
        public string Description { get; set; }

        [RenderMode(Core.MVC.Attributes.RenderMode.None)]
        [Parent("Character")]
        [Display(Name = "Character")]
        public Guid CharacterId { get; set; }
    }

    public class VMCharacterSkill_GridItem : VMCharacterSkill { }
}
